import request from '@/utils/request'

export function getAll(param) {
  return request({
    url: '/produceDayReportDetail/GetAll',
    method: 'get',
    params: param
  })
}
export function getList(param) {
    return request({
      url: '/produceDayReportDetail/list',
      method: 'get',
      params: param
    })
  }

export function getOne(param) {
  return request({
    url: '/produceDayReportDetail/Get',
    method: 'get',
    params: param
  })
}

export function create(param) {
  return request({
    url: '/produceDayReportDetail/save',
    method: 'post',
    data: param
  })
}

export function update(param) {
  return request({
    url: '/produceDayReportDetail/save',
    method: 'post',
    data:param
  })
}
export function deleteBatch(param) {

  let url ='/produceDayReportDetail/deleteBatch'
  return request({
    url: url,
    method: 'delete',
    data: param
  })
}
export function statDayReportDetail(param) {
  return request({
    url: '/produceDayReportDetail/statDayReportDetail',
    method: 'post',
    data: param
  })
}